package com.gt.web.srv.mapper;

import com.gt.web.srv.domain.PaymentOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PaymentOrderMapper {
    int insert(PaymentOrder paymentOrder);

    int update(PaymentOrder paymentOrder);

    int deleteById(@Param("payId") Long payId);

    PaymentOrder selectById(@Param("payId") Long payId);

    PaymentOrder selectByOutTradeNo(@Param("outTradeNo") String outTradeNo);

    List<PaymentOrder> selectList(PaymentOrder paymentOrder);

    int updateTradeStatus(@Param("payId") Long payId,
                          @Param("tradeStatus") Integer tradeStatus,
                          @Param("returnMsg") String returnMsg);

    int updatePrepayId(@Param("payId") Long payId,
                       @Param("prepayId") String prepayId);
}